home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / utility / glue.zip / GLUE.DOC next >
Text File  |  1991-06-08  |  3KB  |  83 lines

  1. GLUE v. 1.0 - Glues DOS programs to Windows programs.
  2.  
  3. Copyright 1991, D. J. Murdoch
  4.  
  5. Syntax
  6.  
  7. GLUE dosprog[.exe] winprog[.exe] combined[.exe]
  8.  
  9. will glue dosprog.exe and winprog.exe together into combined.exe.
  10.  
  11.  
  12. Description
  13.  
  14. Windows applications use a new segmented .EXE format.  This format
  15. allows for a "stub", a DOS program which will be run under DOS, as
  16. well as the Windows program which will run in Windows.  Usually
  17. the stub just prints a message like "This program requires
  18. Microsoft Windows." However, there are no restrictions on it:  any
  19. DOS .EXE format program can serve as a stub.
  20.  
  21. Turbo Pascal for Windows doesn't let you choose an alternate stub,
  22. so I wrote the GLUE utility to change stubs.  It should let you
  23. put just about any DOS program onto just about any Windows
  24. program, but this is the first release, so it probably doesn't.
  25. Please report bugs to me at one of the addresses below.
  26.  
  27. I've tested it with Turbo Pascal programs that contain overlays or
  28. debugging information, and it worked; it also works on programs
  29. that have been compressed with PKLITE (but PKLITE version 1.03
  30. will refuse to compress a combined program).
  31.  
  32. It'll even let you glue most .COM format executables to a Windows
  33. program; it does it by converting them to .EXE format first.  (One
  34. kind of .COM won't work: one that relies on the fact that the DOS
  35. loader puts a zero word on the stack when it loads a .COM program.
  36. Hardly any do though.)
  37.  
  38. There's a chance that GLUE will even work with OS/2 executables
  39. (which have a very similar format to Windows executables) but I
  40. haven't tested it on any so I don't know for sure.
  41.  
  42.  
  43. Why bother?
  44.  
  45. Some useful things you might want to do with GLUE:
  46.  
  47. - Put a generic stub onto a Windows program that starts up
  48. Windows executing the Windows program.
  49.  
  50. - Put a generic Windows program onto a DOS program, that gives
  51. it an icon, and handles standard file handles in some reasonable
  52. way.
  53.  
  54. - Write two versions of a program and glue them together, so
  55. that the user can run the program in either environment and get
  56. similar behaviour.   For example, I glued TURBO.EXE to TPW.EXE, to
  57. got one giant program that was TP 6.0 if I ran it under DOS and
  58. TPW 1.0 if I ran it under Windows.
  59.  
  60.  
  61. License
  62.  
  63. GLUE is not public domain.  It is, however, freely distributable
  64. subject to the following restrictions:
  65.  
  66. You must make no changes to it (other than GLUEing it to a Windows
  67. program :-), and must make no changes to this documentation.
  68.  
  69. You may not sell it at a cost of more than $10 without prior
  70. permission from me.
  71.  
  72. Source code is available from me at a cost of $25 (Canadian or
  73. U.S. funds).
  74.  
  75. D.J. Murdoch
  76. 79 John St. W.
  77. Waterloo, Ontario, Canada
  78. N2L 1B7
  79.  
  80. dmurdoch@watstat.waterloo.edu (Internet)
  81. DJ Murdoch at Fidonet node 1:221/177.40
  82. 71631,122 on Compuserve
  83.